<%= form_tag "hotel_search", :method => "GET", :class => "form-c ", :remote => true do %>
    <fieldset>
        <legend>Book now</legend>
        <h3><span>01.</span> Location?</h3>
        <nav class="select-a">
            <ul class="check-d">
                <%= text_field_tag "search[q]",nil , class: "span2" %><div class="autocomplete-loading" style="display:none;float:left;margin-right:5px;"><%= image_tag "ajax-loader-blue.gif" %>
            </ul>
        </nav>
        <h3><span>02.</span> When?</h3>
        <p class="date-a">
            <span>
                <label for="fcc">Check in</label>
                <%= text_field_tag "search[startdate]", params[:startdate] %>
            </span>
            <span>
                <label for="fcd">Check Out</label>
                <%= text_field_tag "search[enddate]", params[:enddate] %>
            </span>                         
        </p>
        <h3><span>03.</span> Who?</h3>
        <p class="select-a">
            <span>
                <label for="fce">Rooms</label>
                <select id="room" name="search[room]" >
                    <% 1..10.times do |a| %>
                        <option><%= a +1 %></option>
                    <% end %>
                </select>
            </span>
            <span>
                <label for="fcf">Adult</label>
                <select id="adult" name="search[adult]"   %>">
                    <% 1..10.times do |a| %>
                        <option><%= a +1 %></option>
                    <% end %>
                </select>
            </span>
            <span>
                <label for="fcf">Child</label>
                <select id="child" name="search[child]" value="<%= (session[:hotel_ticket_search] == nil )? nil : session[:hotel_ticket_search]['child']  %>">
                    <% 0..10.times do |a| %>
                        <option><%= a %></option>
                    <% end %>
                </select>
            </span>
             </p>
        <p class="submit"><button type="submit">Proceed</button></p>
    </fieldset>
<% end %>